package com.chinafree.business.model.result;

import com.chinafree.business.model.enumeration.SalaryUnitEnum;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
public class JobResult {


    private Long id;

    /**
     * job名字
     */
    private String jobName;

    /**
     * 要求
     */
    private String jobRequired;

    /**
     * 工作职责
     */
    private String jobResponsibility;

    /**
     * 类型，1互联网。。。
     */
    private Integer jobType;

    private String jobTypeName;

    private List<Integer> jobTypeArray;


    /**
     * 资历（工作几年）
     */
    private Integer qualification;

    /**
     * 工资
     */
    private Integer salaryStart;

    /**
     * 工资
     */
    private Integer salaryEnd;

    /**
     * 工资单位
     */
    private Integer salaryUnit;


    private String salaryUnitName;

    public void setSalaryUnit(Integer salaryUnit) {
        this.salaryUnit = salaryUnit;
        this.salaryUnitName = SalaryUnitEnum.getSalaryUnitById(salaryUnit);
    }

    /**
     * 0/1
     * 线上还是线下
     */
    private Byte line;

    /**
     * 地址
     */
    private String address;

    /**
     * 0/1
     * 全职/兼职
     */
    private Integer hireType;


    private CompanyResult companyResult;

    private String score;
    
    private Integer cityId;

    private Integer degreeId;
}
